<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>司机奖励金</title>
	<meta name="decorator" content="default"/>
	<script type="text/javascript">
		$(document).ready(function() {
		});
	</script>
</head>
<body class="gray-bg">
	<div class="wrapper wrapper-content">
	<div class="ibox">
	<div class="ibox-title">
		<h5>司机奖励金 </h5>
	</div>
    <div class="ibox-content">
	<sys:message content="${message}"/>
	
	<!--查询条件-->
	<div class="row">
	<div class="col-sm-12">
	<form:form id="searchForm" modelAttribute="logisDelivery" action="${ctx}/logis/finance/driverReward" method="post" class="form-inline">
		<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
		<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
		<table:sortColumn id="orderBy" name="orderBy" value="${page.orderBy}" callback="sortOrRefresh();"/><!-- 支持排序 -->
		<div class="form-group">
			<span>单号：</span>
			<form:input path="id" htmlEscape="false" maxlength="32"  class=" form-control input-sm"/>
			<span>货物名称：</span>
				<form:input path="goodsName" htmlEscape="false" maxlength="64"  class=" form-control input-sm"/>
			<span>状态：</span>
			<form:select path="status"  class="form-control m-b">
				<form:option value="" label=""/>
				<form:options items="${fns:getDictList('logis_delivery_status2')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
			</form:select>
			<div class="pull-right">
				<button  class="btn btn-primary btn-sm " onclick="search()" ><i class="fa fa-search"></i> 查询</button>
			</div>
		 </div>	
	</form:form>
	<br/>
	</div>
	</div>

	
	<!-- 表格 -->
	<table id="contentTable" class="table table-striped table-bordered table-hover table-condensed dataTables-example dataTable">
		<thead>
			<tr>
				<th  class="sort-column id">单号</th>
				<th  class="sort-column openid">下单人昵称</th>
				<th  class="sort-column openid">下单人手机</th>
				<th  class="sort-column startProvince">发货地--收货地</th>
				<th  class="sort-column openid">收货人电话</th>
				<th  class="sort-column goodsName">货物名称</th>
				<th  class="sort-column goodsWeight">货物重量</th>
				<th  class="sort-column licensePlate">承运车辆</th>
				<th  class="sort-column carrierName">司机昵称</th>
				<th  class="sort-column driverReward">司机奖励金金额</th>
				<th  class="sort-column driverReward">推广司机奖励金</th>
				<th  class="sort-column updateDate">更新时间</th>
			</tr>
		</thead>
		<tbody>
		<c:forEach items="${page.list}" var="logisDelivery">
			<tr>
				<td>
						${logisDelivery.id}
				</td>
				<td>
					${logisDelivery.consignerName}
				</td>
				<td>
						${logisDelivery.consignerMobile}
				</td>
				<td>
					${logisDelivery.startProvince}	${logisDelivery.startCity}--${logisDelivery.endProvince}${logisDelivery.endCity}
				</td>

				<td>
						${logisDelivery.receiverMobile}
				</td>
				<td>
					${logisDelivery.goodsName}
				</td>
				<td>
					${logisDelivery.goodsWeight}
				</td>
				<td>
					${logisDelivery.licensePlate}
				</td>

				<td>
						${logisDelivery.carrierName}
				</td>
				<td>
						${logisDelivery.driverReward}
				</td>

				<td>
						${logisDelivery.driverReward}
				</td>


				<td>
					<fmt:formatDate value="${logisDelivery.updateDate}" pattern="yyyy-MM-dd HH:mm:ss"/>
				</td>


			</tr>
		</c:forEach>
		</tbody>
	</table>
	
		<!-- 分页代码 -->
	<table:page page="${page}"></table:page>
	<br/>
	<br/>
	</div>
	</div>
</div>
</body>
</html>